using System;

namespace Accona.Monitoring
{
    public class Scheduler : MonitorConfigurationBase
    {
        private readonly Schedule _schedule;

        public Scheduler(Monitor monitor, Schedule schedule) : base(monitor)
        {
            _schedule = schedule;
            _monitor = monitor;
        }

        public Monitor AddScheduledJob(Action action)
        {
            _schedule.AddAction(action);
            return _monitor;
        }
    }

}